{% import "/mysql/macros.twig" as func %}
{
    "entity": {
        "name": "{{ table.name }}"
    },
    "fields": {
        "all": "id {{ func.isfield(fields) | trim }}",
        "default": ""
    },
    "relations": {
        "default": "{{ func.isrelation(fields) | trim }}"
    },
    "scan": {
        "default": "id {{ func.isfield(fields) | trim }} {{ func.isrelation(fields) | trim }}"
    }
}